Woocommerce\Pagarme\Controller\Gateways\AbstractGateway A

Total Complexity 70
Dependencies 19
Dependents 3
Total lines 583
Lines of code 299
Logical lines of code 145
Comment lines 144
Methods 35
Properties 12

Methods 35

Method Rating Maintainability Complexity Lines of code
process_payment()
S
51 6 28
getOldConfiguration()
S
62 5 11
saveAdminOptionsInCoreConfig()
S
61 4 12
__construct()
S
48 2 31
pagarme_email_payment_info()
S
65 4 9
isEnabled()
S
60 3 13
validateAlphanumericAndSpacesAndPunctuation()
S
62 3 12
thank_you_page()
S
58 2 16
getOldData()
S
63 3 10
isGatewayType()
S
68 3 7
validateRequired()
S
64 3 10
validateMinValue()
S
63 2 11
validateMaxLength()
S
63 2 11
getTitle()
S
71 2 6
process_refund()
S
63 2 10
getLegacyFieldsName()
S
71 2 6
append_gateway_form_fields()
S
72 2 6
beforeAddAdminOptions()
S
68 2 7
beforeUpdateAdminOptions()
S
68 2 7
field_enabled()
S
60 1 13
isSubscriptionActive()
S
82 1 3
addValidationError()
S
76 1 4
payments_scripts()
S
70 1 6
payment_fields()
S
75 1 4
field_title()
S
65 1 9
jsUrl()
S
79 1 3
getOldTitleName()
S
82 1 3
receipt_page()
S
81 1 3
hasSubscriptionSupport()
S
82 1 3
append_form_fields()
S
82 1 3
init_form_fields()
S
66 1 9
getPaymentMethodTitle()
S
77 1 3
addRefundSupport()
S
82 1 3
checkout_transparent()
S
74 1 4
gateway_form_fields()
S
82 1 3